package com.hspedu.controller;

import com.hspedu.entity.Result;
import com.hspedu.service.MemberFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MemberFeignController {
    @Resource
    private MemberFeignService memberFeignService;
    @GetMapping("/member/openfeign/getMemberById")
    public Result getMemberById(@RequestParam("id")Long id){
        return memberFeignService.getMemberById(id);
    }
}
